<?php
if ($nei_classdb["classtype"]==2){
//单页样式
	if (is_array($newsdb)){
?>
<div id="news_con">
	<div class="t1_line"><?php echo $newsdb["title"]?></div>
	<div class="t3"><?php echo str_replace("src=\"/upload_files/","src=\"http://".$_SERVER['HTTP_HOST']."/upload_files/",stripslashes($newsdb["content"]));?></div>	
</div>
<script>

//弹出框中图片的切换
(function() {
var imgs = jQuery(".t3 img"),
imgsSrc = [],
minWidth = 0;
imgs.each(function() {
var jqthis = jQuery(this),
src = jqthis.attr('data-src') || jqthis.attr('src');
if (jqthis.width() >= minWidth && src) {
imgsSrc.push(src);
jqthis.on('click', function() {
reviewImage(src);
});
}
});

function reviewImage(src) {
if (typeof window.WeixinJSBridge != 'undefined') {
WeixinJSBridge.invoke('imagePreview', {
'current' : src,
'urls' : imgsSrc
});
}
}
    })();
</script>

<?php
	}else{echo "<center>暂无信息</center>";}
}
else if($nei_classdb["classtype"]==1){
?>
	<div id="news">
		<ul id="html_div"></ul>
	 </div>
	<div id="pagemore" style="display:none;"></div>
	<div id="Div2" style="background: none repeat scroll 0px 0px rgb(247, 247, 247); margin-top: 10px; line-height: 30px; text-align: center; border: 1px solid rgb(240, 240, 240); display:none; margin-bottom:5px; clear:both; width:96%;">没有更多的页面加载</div>
<script language="javascript" src="js/page.js"></script>
<script type="text/javascript">
	var index = 1;
	var max = 1;
	var isnext = true;
	$(window).scroll(function () {
		// 当滚动到最底部以上100像素时， 加载新内容
		if (($(window).height() + $(window).scrollTop()) >=$("body").height()-10) {
			if (isnext) {
				
				isnext=false;
				show_page2("getlist_pic.php?id=<?php echo $nei_classdb["fid"]?>&","#html_div","#pagemore",index,6);
			}
		}
	});
	show_page2("getlist_pic.php?id=<?php echo $nei_classdb["fid"]?>&","#html_div","#pagemore",index,6);
	function set_page_next(pageindex){
		index=pageindex;
		isnext = true;
	}
	function show_nohave(){
		isnext=false;
		$("#Div2").show();
	}
</script>
<?php
}
else if($nei_classdb["classtype"]==4){
?>
	<div class="MinWidth">

<!--show start-->
	<div class="show">
	<div class="pr_showList_Grid MarginTop10">
		<ul id="html_div">
	
		</ul>
	</div>
	</div>
<!--show end-->
	</div>

	 <div id="pagemore" style="display:none;"></div>
	 <div class="clear"></div>
	<div id="Div2" style="background: none repeat scroll 0px 0px rgb(247, 247, 247); margin-top: 10px; line-height: 30px; text-align: center; border: 1px solid rgb(240, 240, 240); display:none; margin-bottom:5px; clear:both; width:94%; margin:0 auto;">没有更多的页面加载</div>
<script language="javascript" src="js/page.js"></script>
<script type="text/javascript">
	var index = 1;
	var max = 1;
	var isnext = true;
	$(window).scroll(function () {
		// 当滚动到最底部以上100像素时， 加载新内容
		if (($(window).height() + $(window).scrollTop()) >=$("body").height()-10) {
			if (isnext) {
				
				isnext=false;
				show_page2("getlist_pic3.php?id=<?php echo $nei_classdb["fid"]?>&","#html_div","#pagemore",index,6);
			}
		}
	});
	show_page2("getlist_pic3.php?id=<?php echo $nei_classdb["fid"]?>&","#html_div","#pagemore",index,6);
	function set_page_next(pageindex){
		index=pageindex;
		isnext = true;
	}
	function show_nohave(){
		isnext=false;
		var divhtml=$("#html_div").html();
		$("#html_div").html(divhtml+'<li class="green bounceInDown" id="Div2"><h3><span></span><div class="clr"></div></h3></li>');
	}
</script>

<?php
}
else if($nei_classdb["classtype"]==5){
?>
	<div id="news_pic">
		<ul id="html_div"></ul>
	 </div>
	 <div id="pagemore" style="display:none;"></div>
	 <div class="clear"></div>
	<div id="Div2" style="background: none repeat scroll 0px 0px rgb(247, 247, 247); margin-top: 10px; line-height: 30px; text-align: center; border: 1px solid rgb(240, 240, 240); display:none; margin-bottom:5px; clear:both; width:96%;">没有更多的页面加载</div>
<script language="javascript" src="js/page.js"></script>
<script type="text/javascript">
	var index = 1;
	var max = 1;
	var isnext = true;
	$(window).scroll(function () {
		// 当滚动到最底部以上100像素时， 加载新内容
		if (($(window).height() + $(window).scrollTop()) >=$("body").height()-10) {
			if (isnext) {
				
				isnext=false;
				show_page2("getlist_pic2.php?id=<?php echo $nei_classdb["fid"]?>&","#html_div","#pagemore",index,6);
			}
		}
	});
	show_page2("getlist_pic2.php?id=<?php echo $nei_classdb["fid"]?>&","#html_div","#pagemore",index,6);
	function set_page_next(pageindex){
		index=pageindex;
		isnext = true;
	}
	function show_nohave(){
		isnext=false;
		$("#Div2").show();
	}
</script>

<script>

//弹出框中图片的切换
(function() {
var imgs = jQuery('img'),
imgsSrc = [],
minWidth = 0;
imgs.each(function() {
var jqthis = jQuery(this),
src = jqthis.attr('data-src') || jqthis.attr('src');
if (jqthis.width() >= minWidth && src) {
imgsSrc.push(src);
jqthis.on('click', function() {
reviewImage(src);
});
}
});

function reviewImage(src) {
if (typeof window.WeixinJSBridge != 'undefined') {
WeixinJSBridge.invoke('imagePreview', {
'current' : src,
'urls' : imgsSrc
});
}
}
    })();
</script>

<?php
}
else{
	?>
	<div class="article_list" id="html_div"></div>
<!-- 	<div class="more" id="pagemore"><a href="#">查看更多>></a></div> -->
	<div id="Div2" style="background: none repeat scroll 0px 0px rgb(247, 247, 247); margin-top: 10px; line-height: 30px; text-align: center; border: 1px solid rgb(240, 240, 240); display:none; margin-bottom:5px; clear:both; width:96%;">没有更多的页面加载</div>
<script language="javascript" src="js/page.js"></script>
<script type="text/javascript">
	var index = 1;
	var max = 1;
	var isnext = true;
	$(window).scroll(function () {
		// 当滚动到最底部以上100像素时， 加载新内容
		if (($(window).height() + $(window).scrollTop()) >=$("body").height()-10) {
			if (isnext) {
				
				isnext=false;
				show_page2("getlist.php?id=<?php echo $nei_classdb["fid"]?>&","#html_div","#pagemore",index,6);
			}
		}
	});
	show_page2("getlist.php?id=<?php echo $nei_classdb["fid"]?>&","#html_div","#pagemore",index,6);
	function set_page_next(pageindex){
		index=pageindex;
		isnext = true;
	}
	function show_nohave(){
		isnext=false;
		$("#Div2").show();
	}
</script>
<?php
}
?>
